package com.ruoyi.demo.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 竞拍记录对象 auction_record
 *
 * @author metaee
 * @date 2025-02-24
 */
@ApiModel("竞拍记录对象")
public class AuctionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 商品ID */
    @ApiModelProperty("商品ID")
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 竞拍用户ID */
    @ApiModelProperty("竞拍用户ID")
    @Excel(name = "竞拍用户ID")
    private Long userId;

    /** 竞拍价格 */
    @ApiModelProperty("竞拍价格")
    @Excel(name = "竞拍价格")
    private BigDecimal bidPrice;

    /** 竞拍时间 */
    @ApiModelProperty("竞拍时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "竞拍时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bidTime;

    @ApiModelProperty(value = "状态，字典：auction_record_status")
    private String status;

    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId()
    {
        return recordId;
    }
    public void setGoodsId(Long goodsId)
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId()
    {
        return goodsId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBidPrice(BigDecimal bidPrice)
    {
        this.bidPrice = bidPrice;
    }

    public BigDecimal getBidPrice()
    {
        return bidPrice;
    }
    public void setBidTime(Date bidTime)
    {
        this.bidTime = bidTime;
    }

    public Date getBidTime()
    {
        return bidTime;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("goodsId", getGoodsId())
            .append("userId", getUserId())
            .append("bidPrice", getBidPrice())
            .append("bidTime", getBidTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
